package io.union_pay.exception;

import io.union_pay.response.BaseResponse;
import lombok.Data;

@Data
public class UnionPayApiRequestException extends RuntimeException {
    public UnionPayApiRequestException() {

    }

    public UnionPayApiRequestException(String message) {
        super(message);
    }

    public UnionPayApiRequestException(BaseResponse response) {
        super("errCode：" + response.getErrCode() + ", errInfo: " + response.getErrMsg());
    }
}
